<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>咨询活动管理--编辑回复</title>
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
</head>

<body>
<html:form method="post" action="/others/myMessageManage" >
	<input type="hidden" name="method" value="update"/>
	    <table align="center">
	    <logic:present name="myMessage">
	    <input type="hidden" name="myMessage.id" value="${myMessage.id}"/>
	    <input type="hidden" name="myMessage.code" value="${myMessage.code}"/>
		</logic:present>
	    <tr>
	    	<th colspan="2" height="25px">管理员回复</th>
	    </tr>
	    <tr>
	    	<td class="td_01">标题：</td>
	    	<td class="td_04">${myMessage.title}</td>
	    </tr>
		<tr>
	    	<td class="td_01">内容：</td>
	    	<td class="td_04">
	    	${myMessage.content}			</td>
	    </tr>
	    <tr>
	    	<td class="td_01">回复：</td>
	    	<td class="td_04">
	    	<textarea name="myMessage.reply" cols="60" rows="10" id="myMessage.reply">
	    	${myMessage.reply}
	    	</textarea>			</td>
	    </tr>
	    <tr>
			<td colspan="2" class="td_01">
			<input type="submit" class="btn" value="提交"   style="border:1 solid #000000"/>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="reset" class="btn" value="重置"   style="border:1 solid #000000"/>			
        	</td>
		</tr>
</table>
</html:form>
</body>
<script type="text/javascript">
   //获得内容控件
   var content=document.getElementById("myMessage.reply");
   content.onchange=function(){
       var str=content.value;
       str=bb(aa(str));
       content.value=str;
   }
  function aa(str){
        return   str.replace(/^[\s]+/,"");   
  }     
  function bb(str){
        return   str.replace(/[\s]+$/,"");
  }  
	</script>
</html>